﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace ifunction.BaiduBCS.SDK
{
    /// <summary>
    /// Class ACLRequest.
    /// </summary>
    [DataContract]
    public class ACLRequest
    {
        /// <summary>
        /// Gets or sets the name of the bucket.
        /// </summary>
        /// <value>The name of the bucket.</value>
        [DataMember(Name = "bucket")]
        public string BucketName
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the permission.
        /// </summary>
        /// <value>The permission.</value>
        [DataMember]
        public StorageObjectPermission Permission
        {
            get;
            set;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ACLRequest"/> class.
        /// </summary>
        public ACLRequest()
            : base()
        {

        }
    }
}
